package com.ask.utils;

public enum ErrorCode {

    SUCCESS("0000", "成功"), PARAM_ERROR("1001", "参数错误"), REQUEST_INVALID("1002", "请求失效"), REQUEST_TIMEOUT("1003",
            "请求超时"), TOKEN_INVALID("1004", "token无效"), NOT_FOUND_RESULT("2001", "找不到结果"), MULTI_REPORT("3001",
            "多次举报"), WORD_SENSITIVE("4001", "词汇敏感"), NO_USER("5001", "未注册"), BOTTLE_DELETED("5002",
            "瓶子已经被删"), HAVE_GRABED("5003", "已经抢过"), BOTTLE_CANT_DELETE("5004", "瓶子不能被删除"), BE_RETHROWED(
            "5005", "瓶子已经被重新扔过"), BOTTLE_SELF_DELETED("5006", "瓶子已经被自己删除"), BAGS_EMPTY("6001",
            "红包被抢光了"), ANSWER_ERROR("6002", "回答错误"), RELATION_NOT_EXSIT("6003",
            "会话关系不存在"), BAG_TOO_MANY("6004", "红包太多了"), GRAB_SELF_ERROR("6005",
            "不能抢自己的瓶子"), GRAB_TOO_MANY("6006",
            "抢的人太多了，再试试"),REDBAG_INVALID("6007",
                    "红包不合法"), THROW_TOO_FAST("6008",
                            "扔太快了"),BALANCE_NOT_ENOUGH("7001",
            "余额不足"), WITHDRAW_EXCEPTION("7002",
            "提现异常"), WITHDRAW_ILLEGAL("7003",
            "提现金额非法"), MASTER_FAIL(
            "8101",
            "师傅注册时间比徒弟注册时间晚"), NO_MASTER(
            "8102",
            "没有找到师傅的信息"), HAS_MASTERED(
            "8103",
            "您已经拜过师了"), NEED_RELOGIN(
            "8104",
            "没有TOKEN，需要重新登录"), HAVE_SIGNED(
            "8002",
            "今天已经签到"), HAVE_OPENBOX(
            "8003",
            "宝箱还未冷却"), HAD_BIND(
            "8203",
            "该第三方账号已经被其他手机号绑定了，请换一个账号试试"), BIND_MERGE(
            "8204",
            "合并账号"), HAD_BIND_THIRD(
            "8205",
            "已绑定，无需重复绑定"), USER_NOT_EXIT(
            "8206",
            "当前用户不存在"), NO_ACTIVITY(
            "8301",
            "没有活动了"), HAD_COMPLETE(
            "8402",
            "您已经完成过了"), HAD_ARRIVED(
            "8403",
            "您赚的钱已经达标了，系统将在一小时内处理提现请求，请注意查看零钱明细"),
            CAN_NOT_THROW_BOTTLE(
            "8404",
            "只能扔私密的瓶子"),
            WEIXIN_CONFIG_FAIL("9997","商户配置加载失败"),
    		REDIS_LOCK_EXCEPTION("9998","获取redis锁异常"),
    		SYSTEM_EXCEPTION("9999","系统异常");

    private ErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    private String code;

    private String message;

    /**
     * @return the code
     */
    public String getCode() {
        return code;
    }

    /**
     * @param code the code to set
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * @return the message
     */
    public String getMessage() {
        return message;
    }

    /**
     * @param message the message to set
     */
    public void setMessage(String message) {
        this.message = message;
    }
}
